package com.study.interceptor;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
/*@Configuration*/
public class MyWebAppConfigurer implements  WebMvcConfigurer{
	@Override
	public void addInterceptors(InterceptorRegistry registry) {
		registry.addInterceptor(new SimpleInterceptor()).addPathPatterns("/**").excludePathPatterns("/login");		
		//销售拦截器
		//registry.addInterceptor(new XiaoshouInterceptor()).addPathPatterns("/customer/*");
		//System.out.println("hhshsshshshshsh哈哈哈哈我是谁");
		
	}
}
